package com.newbingo.dao.imple;

import java.util.List;

//import org.hibernate.LockMode;

import com.newbingo.entity.Game;
import com.newbingo.entity.GamePlay;
import com.newbingo.util.Pager;

public interface IGamePlayDao {

	/**
	 * 保存游戏玩法
	 * @param gamePlay
	 */
	public abstract void save(GamePlay gamePlay);

	/**
	 * 删除游戏玩法
	 */
	public abstract void delete(GamePlay gamePlay);


	public abstract GamePlay findById(Integer id);
	/**
	 * 根据属性查找
	 * @param propertyName
	 * @param value
	 * @return
	 */
	public abstract List findByProperty(String propertyName, Object value);

	public abstract List findByname(Object name);

	public abstract List findByScriptType(Object scriptType);

	public abstract List findAll();
	
	public abstract List findByGameNo(Integer gameno);

	/**
	 * 修改GamePlay实例
	 * @param detachedInstance
	 * @return
	 */
	public abstract void merge(GamePlay detachedInstance);
	
	/*
	 * (non-Javadoc)
	 * 
	 * @see com.dao.backstage.IGameDAO#attachDirty(com.newbingo.entity.Game)
	 */
	public abstract void attachDirty(GamePlay instance);

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.dao.backstage.IGameDAO#attachClean(com.newbingo.entity.Game)
	 */
	public abstract void attachClean(GamePlay instance);

	/**
	 * 分页查询方法
	 * @param start
	 * @param limit
	 * @param scriptType
	 * @return
	 */
	public abstract Pager findByPage(int start, int limit, Integer gameno);

}